import java.sql.SQLOutput;
import java.util.Scanner;
     //作业一
public class zuoye {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入年：");
        int year = sc.nextInt();
        System.out.println("请输入月：");
        int month = sc.nextInt();
        System.out.println("请输入日：");
        int date = sc.nextInt();
        switch (month) {
            case 1:
                date += 31;
                break;
            case 2:
                if ((year % 4 == 0 && year % 100 == 0) || (year % 400 == 0)){
                    date += 29;
                }else {
                    date += 28;
                }
                break;
            case 3:
                date += 31 + 29 + 31;
                break;
            case 4:
                date += 30 + 31 + 29 + 31;
                break;
            case 5:
                date += 31 + 30 + 31 + 29 + 31;
                break;
            case 6:
                date += 30 + 31 + 30 + 31 + 29 + 31;
                break;
            case 7:
                date += 31 + 30 + 31 + 30 + 31 + 29 + 31;
                break;
            case 8:
                date += 31 + 31 + 30 + 31 + 30 + 31 + 29 + 31;
                break;
            case 9:
                date += 30 + 31 + 31 + 30 + 31 + 30 + 31 + 29 + 31;
                break;
            case 10:
                date += 31 + 30 + 31 + 31 + 30 + 31 + 30 + 31 + 29 + 31;
                break;
            case 11:
                date += 30 + 31 + 30 + 31 + 31 + 30 + 31 + 30 + 31 + 29 + 31;
                break;
            case 12:
                date += 31 + 30 + 31 + 30 + 31 + 31 + 30 + 31 + 30 + 31 + 29 + 31;
                break;
        }
        System.out.println("今天是" + year + "年的第" + date + "天");
    }
}






















